# $Id: PKGBUILD 148027 2012-01-30 03:41:28Z dan $
# Contributor: Judd Vinet <jvinet@zeroflux.org>

pkgname=acpi
pkgver=1.6
pkgrel=1
pkgdesc="Linux ACPI client providing battery, AC power, and thermal readings"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/acpiclient"
depends=('glibc')
source=(http://downloads.sourceforge.net/acpiclient/$pkgname-$pkgver.tar.gz)
license=('GPL2')
sha256sums=('ed61d20400c4fd3965dde9b49ab3ac74da02f8eca1a55454f7a1ac3fa1fd5c31')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
}
